import request from '../utils/request'
/**获取文件树状结构 */
export const GetFile = () => request({
    url: '/fileInfo/Structure',
    method: 'GET',
  })
  /** 查询回收站信息*/
  export const GetQueryBin = (data) =>request({
    url:'/fileInfo/recycleBin',
    method:'GET',
    data:data
  })
   /** 文件查询*/
   export const FileQuery = (data)=>request({
    url:'/fileInfo',
    method:'GET',
    data:data
  })
  /**查询文件内容 */
  export const FileQueryContent = (data)=>request({
    url:'/fileInfo/download',
    method:'GET',
    data:data
  })
  /**添加文件 */
  export const AddFile = (data)=>request({
    url:'/fileInfo',
    method:'POST',
    data:data
  })
  /** 添加文件夹*/
  export const AddFolder = (data)=>request({
    url:'fileInfo/file',
    method:'POST',
    data:data
  })
  /** 修改文件名*/
  export const ModifyFileName = ()=>request({
    url:'/fileInfo',
    method:'PUT',
    data:data
  })
  /**删除到回收站 */
  export const DeleteBin = (id)=>request({
    url:'/fileInfo',
    method:'DELETE',
    data:id
  })
  /** 从回收站恢复删除*/
  export const ResumeDeletion =(id)=>request({
    url:'/fileInfo/UnDelete',
    method:'PUT',
    data:id
  })
  /** 从回收站彻底删除*/
  export const DeleteCompletely=(id)=>request({
    url:'/fileInfo/Delete',
    method:'DELETE',
    data:id
  })
 